import request from '@/utils/request'

// 查询清洁列表
export function listCleaning(query) {
  return request({
    url: '/civil/cleaning/list',
    method: 'get',
    params: query
  })
}

// 查询清洁详细
export function getCleaning(tCleanId) {
  return request({
    url: '/civil/cleaning/' + tCleanId,
    method: 'get'
  })
}

// 新增清洁
export function addCleaning(data) {
  return request({
    url: '/civil/cleaning',
    method: 'post',
    data: data
  })
}

// 修改清洁
export function updateCleaning(data) {
  return request({
    url: '/civil/cleaning',
    method: 'put',
    data: data
  })
}

// 删除清洁
export function delCleaning(tCleanId) {
  return request({
    url: '/civil/cleaning/' + tCleanId,
    method: 'delete'
  })
}
